﻿
function deleteOrder(id){
    $.ajax({
        type        : 'POST',
        url         : 'DeleteOrder?orderid=' + id,
        success     : function (data){
            if(data === 'Success'){
                $('#tr' + id).remove();
                alert('删除成功');
            }else {
                alert('删除失败');
            }
        },
        error   : function (errorMsg){
            console.log(errorMsg);
        }
    });
}